<?php
class Observers_UpdateStock implements SplObserver {
	public function update(InvoiceComponent $subject) {
		echo 'Stock reduced with '.$subject->getQuantity().' on product: '.$subject->getProduct().PHP_EOL;
	}
}
